package entity;

import com.alibaba.fastjson.annotation.JSONField;
import sun.rmi.runtime.Log;

import java.util.List;

/**
 * Created by cdxuhongya on 2016/9/9.
 */
public class Friend {

    @JSONField(name = "user_id")
    private Long id;
    @JSONField(name = "friend_name")
    private String name;

    @JSONField(name = "friends")
    private List<Friend> friends;

    public Friend() {
    }

    public Friend(Long id, String name, List<Friend> friends) {
        this.id = id;
        this.name = name;
        this.friends = friends;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Friend> getFriends() {
        return friends;
    }

    public void setFriends(List<Friend> friends) {
        this.friends = friends;
    }

    @Override
    public String toString() {
        return "Friend{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", friends=" + friends +
                '}';
    }
}
